//
//  DBHelper+FollowReading.h
//  KidReading
//
//  Created by YangShuai on 16/9/27.
//  Copyright © 2016年 刘赞黄Telen. All rights reserved.
//

#import "DBHelper.h"

@interface OneWordASRResult : TABLE_base

@property(nonatomic,assign)NSInteger userId;
@property(nonatomic,assign)NSInteger bookId;
@property(nonatomic,assign)NSInteger pageIndex;
@property(nonatomic,assign)NSInteger senIndex;
@property(nonatomic,strong)NSString* sentence;
@property(nonatomic,strong)NSString* radioSrc;
@property(nonatomic,assign)NSInteger evalFlag;
@property(nonatomic,strong)NSString* evalInfo;
@end

@interface OneWordASRResult_Failure : TABLE_base
@property(nonatomic,assign)NSInteger userId;
@property(nonatomic,assign)NSInteger bookId;
@property(nonatomic,assign)NSInteger pageIndex;
@property(nonatomic,assign)NSInteger senIndex;
@property(nonatomic,strong)NSString* sentence;
@property(nonatomic,strong)NSString* radioSrc;
@property(nonatomic,assign)NSInteger evalFlag;
@property(nonatomic,strong)NSString* evalInfo;
@end


@interface DBHelper (FollowReading)
@property(nonatomic,strong)JRFMDatabaseQueue* ASRResultdbQue;

//添加跟读数据
- (void)followReading_updateListToTableClass:(NSString *)tableClassName dictArr:(NSArray*)dictList complete:(void (^)(void))comp;
//删除跟读数据
- (void)followReading_deletListToTableClass:(NSString *)tableClassName dictArr:(NSArray*)dictList complete:(void (^)(void))comp;
- (void)followReading_deletListToTableClass:(NSString *)tableClassName tbArr:(NSArray*)dictList complete:(void (^)(void))comp;
//查询跟读数据
- (void)followReading_getDictList:(void(^)(NSArray* list))retlist fromTableClass:(NSString*)tableClassName where:(NSString*)wheresql;
- (void)followReading_getList:(void(^)(NSArray* list))retlist fromTableClass:(NSString*)tableClassName where:(NSString*)wheresql;
//

@end
